cod_set_user_render

Syntax

native cod_set_user_render(id, value, type = ROUND, status = RENDER_ALWAYS, weapons = FULL, Float:timer = 0.0);

Usage

id
Player index
value
Render amount, value from -255 to 255 (256 to disable)
type
Bonus type, valid types are:
ALL - overall
CLASS - for class
ITEM - for item
ADDITIONAL - static bonus
ROUND - until round end
DEATH - until death
DAMAGE_GIVEN - until player damage enemy
DAMAGE_TAKEN - until player is hurt
status
Player state for render, valid values:
RENDER_ALWAYS - always
RENDER_STAND - only if player is standing still
RENDER_MOVE - only if player is moving
RENDER_DUCK - only if player is ducking
RENDER_SHIFT - only if player is walking
weapons
Weapons in 1<<CSW_* format or FULL for all weapons.
timer
Timer sets static render value for certain amount of time.
While active it blocks any other render bonuses.

Description

Sets players render amount bonus.

Note

There can be only one render for CLASS, ITEM, ADDITIONAL,
but multiple all other types - every set adds new render record.

Note

Lower render has priority, but still will be reduced by bonuses with value lower than 0.

Note

Value for class type must be at least 0.

Note

Status can be bitsum, for example only while crouching while not moving: RENDER_STAND|RENDER_DUCK.

Note

Weapons can be bitsum, for example bonus for both M4A1 and AK47: (1<<CSW_M4A1)|(1<<CSW_AK47).

Return

This function has no return value.